package com.lsmgc.cms;

import com.lsmgc.cms.entity.article.Article;
import com.lsmgc.cms.service.article.ArticleService;

import java.sql.SQLException;
import java.util.Date;

public class ArticleAddData {

    public static void main(String[] args) throws SQLException {
        ArticleService service = new ArticleService();
        for (int i = 1; i <= 1000; i++) {
            Article article = new Article();
            article.setTitle("标题" + i);
            article.setContent("内容" + i);
            article.setAddTime(new Date());
            service.addArticle(article);
        }
    }
}
